Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Agents search sensibility #90

Merged
merged 3 commits into from
Aug 1, 2024

Conversation

Bilelkihal
Copy link
Collaborator

@Bilelkihal Bilelkihal commented Jul 31, 2024

Issue description

When we search for example for the query = abcdefghijklmnopqrstuvwxyz
we get 36 agents (https://data.stageportal.lirmm.fr/search/agents?query=abcdefghijklmnopqrstuvwxyz)
and the expected behavior is to get no agent

Solution

Changed the search query logic passed to Solr to make it match only Strings and substrings rather than individual letters

@Bilelkihal Bilelkihal self-assigned this Aug 1, 2024
Copy link

@syphax-bouazzouni syphax-bouazzouni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the code to make it more generic by default we use the previous query filter. But now the UI can overwrite that by providing a custom qf parameter.

@syphax-bouazzouni syphax-bouazzouni merged commit 014eb3d into development Aug 1, 2024
24 checks passed
@Bilelkihal
Copy link
Collaborator Author

Ok, I'll open a PR in the UI to pass it

syphax-bouazzouni added a commit that referenced this pull request Aug 8, 2024
* Feature: mappings statistics slices support (#78)

* restrict mapping statistics ontologies to the ontologies of the current slice

* add a test for the mappings slices support

* add test for mappings statistics slices support

* update owl wrapper version to v1.4.3

* update test search multilingual test to ensure selecting one prefLabel

* add filter search results attributes by language

* add search  multiple languages or all languages tests

* implement display search results in multiple languages

* fix annotator prefLabel language selection

* fix: remove duplicated agents endpoint ('/Agents') (#85)

* Feature: implement ontology agents endpoint (#84)

* implement ontology agents endpoint

* Move ontology agents method out of agents namespace in agents_controller

* return a list of uniq values, for the endpoint '/ontologies/:acronym/agents' that contains all the agents of the ontology using agents_attrs list

* test for ontology agents endpoing

* add another ontologyin test ontology agents test, and assert only the number of results and the names

---------

Co-authored-by: Bilel KIHAL <[email protected]>

* update API deploy CI  to SSH jump host and get configs from private repo

* update deploy files and add agroportal, stage and test environments

* Feature: update agents search endpoint to add option to have a custom qf paramter  (#90)

* fix agents search sensibility

* improve agents search endpoint to search only exact string or substring match

* make the agent search endpoint query filter configurable

---------

Co-authored-by: Syphax <[email protected]>

* Fix: hide duplicated agents endpoint ('/Agents')  (#91)

* remove duplicated agents endpoint ('/Agents')

* put again the Agents endpoint

* hide Agents endpoint in the home endpoint

* fix properties tests

---------

Co-authored-by: Bilel KIHAL <[email protected]>

---------

Co-authored-by: Bilel Kihal <[email protected]>
Co-authored-by: Bilel KIHAL <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants